package com.songshuai.webapi.permission.dto.request;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.NotBlank;

import javax.validation.constraints.NotNull;

@Data
@ApiModel(value="角色修改实体")
public class RoleEditDto {

    @NotNull(message = "角色ID不能为空")
    @ApiModelProperty(value="角色ID",required = true)
    private Integer roleId;

    @NotBlank(message = "角色名称不能为空")
    @ApiModelProperty(value="角色名称",required = true)
    private String roleName;

    @ApiModelProperty(value="角色备注",required = false)
    private String remark;

    @ApiModelProperty(value="校区ID",required = false)
    private String campusId;

    @ApiModelProperty(value="开始时间",required = false)
    private String startTime;

    @ApiModelProperty(value="结束时间",required = false)
    private String endTime;

    @NotNull(message = "系统角色标识不能为空")
    @ApiModelProperty(value="系统角色标识",required = true)
    private Integer isBuiltin;

}